#pragma once

#include <QObject>
#include <QThread>
#include <QTimer>

class myQThread  : public QObject
{
	Q_OBJECT

public:
	myQThread(QObject *parent = nullptr);
	~myQThread();
	

public slots:

	void start(int interval) const;

	int run();
	void stop() const;

	void set_enable(bool enable);
	bool get_enable()const;

	bool isThradRun();



private:
	bool m_enable = false;
	QThread* thread;
	QTimer* timer;


};
